home *** CD-ROM | disk | FTP | other *** search
- property sd, spriteNum
- global gLevel, gUpgradeSet, gDoingTutorial, gNextLevel
-
- on beginSprite me
- sd = sprite(spriteNum)
- sd.blend = 0
- sd.visible = 0
- end
-
- on mouseUp me
- playSound(9, "mousedown1")
- sprite(4).visible = 1
- sprite(4).loc = sd.loc
- gLevel = spriteNum - 9
- if spriteNum = 6 then
- gLevel = 0
- end if
- if gLevel < gNextLevel then
- sprite(37).visible = 0
- else
- sprite(37).visible = 1
- end if
- if spriteNum = 6 then
- if the doubleClick then
- gLevel = 0
- gDoingTutorial = 1
- go("Game")
- end if
- else
- gDoingTutorial = 0
- if (spriteNum - 9) < 11 then
- gUpgradeSet = 1
- else
- gUpgradeSet = 2
- end if
- if the doubleClick then
- go("Game")
- end if
- end if
- end
-